@extends('admin.layout.index')
@section('content')
<div class="col-md-12 col-sm-12">
                    <div class="card">
                        <div class="card-action">
                        	所属分类 ：{{ $class[0] }} | {{ $class[1] }} | {{ $class[2] }}
                        	<br>
                            {{ $details['title'] }}
                        </div>
                        <div class="card-content"> 
							 <ul class="collapsible" data-collapsible="accordion">
								<li class="">
								  <div class="collapsible-header"><i class="material-icons">filter_drama</i>帐号信息</div>
								  <div class="collapsible-body" style="display: none;">
								  	<p>
										帐号: <a href="/admin/user/userdetail?id={{ $user['id'] }}">{{ $user['username'] }}</a>
										<br>
								  		创建时间：{{ date('Y-m-d h:i:s',$user['ctime']) }}
								  	</p>
								  </div>
								</li>
								<li class="">
								  <div class="collapsible-header"><i class="material-icons">place</i>商品详情</div>
								  <div class="collapsible-body" style="display: none;">
								  	<p>
								  		{{ $details['details'] }}
								  	</p>
								  </div>
								</li>
								<li class="">
								  <div class="collapsible-header"><i class="material-icons">whatshot</i>商品属性</div>
								  <div class="collapsible-body" style="display: none;">
								  	<p>
								  		{!! $details['attrbute'] !!}
								  	</p></div>
								</li>
							  </ul> 
                            
                            </div>
                        </div>
                    </div>


<div class="col-md-4 col-sm-4">
                   <div class="card teal">
						<div class="card-content white-text">
						  <span class="card-title">共 {{ $count }} 条评论</span>
						  <p></p>
						</div>
						<div class="card-action">
						  <a href="/admin/goods/reviews?gid={{ $data['id'] }}">查看相关评论</a>
						
						</div>
					  </div>
</div>
<div class="col-md-4 col-sm-4">
                        <div class="card" style="overflow: hidden;">
						<div class="card-image waves-effect waves-block waves-light">
						  <img class="activator" src="{{ $details['image1'] }}" onerror="this.src='/goodsupload/goodsphoto/default.gif'" style="width:336px;height:250px">
						</div>
						<div class="card-content">
						  <span class="card-title activator grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">more_vert</i></span>
						  <p><a href="javascript:;" onclick="detailfun(this)" info="{{ $details['image1'] }}" num="1" card="{{ $details['id'] }}">删除此图</a></p>
						</div>
						<div class="card-reveal" style="transform: translateY(0px); display: none;">
						  <span class="card-title grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">close</i></span>
						  <p>{{ $details['details'] }}</p>
						</div>
					  </div>
 </div>
 <div class="col-md-4 col-sm-4">
                        <div class="card" style="overflow: hidden;">
						<div class="card-image waves-effect waves-block waves-light">
						  <img class="activator" src="{{ $details['image2'] }}" onerror="this.src='/goodsupload/goodsphoto/default.gif'" style="width:336px;height:250px">
			
						</div>
						<div class="card-content">
						  <span class="card-title activator grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">more_vert</i></span>
						  <p><a href="javascript:;" onclick="detailfun(this)" info="{{ $details['image2'] }}" num="2" card="{{ $details['id'] }}">删除此图</a></p>
						</div>
						<div class="card-reveal" style="transform: translateY(0px); display: none;">
						  <span class="card-title grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">close</i></span>
						  <p>{{ $details['details'] }}</p>
						</div>
					  </div>
 </div>
 <div class="col-md-4 col-sm-4">
                        <div class="card" style="overflow: hidden;">
						<div class="card-image waves-effect waves-block waves-light">
							  <img class="activator" src="{{ $details['image3'] }}" onerror="this.src='/goodsupload/goodsphoto/default.gif'" style="width:336px;height:250px">
					
						</div>
						<div class="card-content">
						  <span class="card-title activator grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">more_vert</i></span>
						  <p><a href="javascript:;" onclick="detailfun(this)" info="{{ $details['image3'] }}" num="3" card="{{ $details['id'] }}">删除此图</a></p>
						</div>
						<div class="card-reveal" style="transform: translateY(0px); display: none;">
						  <span class="card-title grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">close</i></span>
						  <p>{{ $details['details'] }}</p>
						</div>
					  </div>
 </div>
 <div class="col-md-4 col-sm-4">
                        <div class="card" style="overflow: hidden;">
						<div class="card-image waves-effect waves-block waves-light">

						  <img class="activator" src="{{ $details['image4'] }}" onerror="this.src='/goodsupload/goodsphoto/default.gif'" style="width:336px;height:250px">
					
						</div>
						<div class="card-content">
						  <span class="card-title activator grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">more_vert</i></span>
						  <p><a href="javascript:;" onclick="detailfun(this)" info="{{ $details['image4'] }}"num="4"  card="{{ $details['id'] }}">删除此图</a></p>
						</div>
						<div class="card-reveal" style="transform: translateY(0px); display: none;">
						  <span class="card-title grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">close</i></span>
						  <p>{{ $details['details'] }}</p>
						</div>
					  </div>
 </div>
 <div class="col-md-4 col-sm-4">
                        <div class="card" style="overflow: hidden;">
						<div class="card-image waves-effect waves-block waves-light">
							 <img class="activator" src="{{ $details['image5'] }}" onerror="this.src='/goodsupload/goodsphoto/default.gif'" style="width:336px;height:250px">
					
						 
						</div>
						<div class="card-content">
						  <span class="card-title activator grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">more_vert</i></span>
						  <p><a href="javascript:;" onclick="detailfun(this)" info="{{ $details['image5'] }}" num="5"  card="{{ $details['id'] }}">删除此图</a></p>
						</div>
						<div class="card-reveal" style="transform: translateY(0px); display: none;">
						  <span class="card-title grey-text text-darken-4">{{ $data['goodsname'] }}<i class="material-icons right">close</i></span>
						  <p>{{ $details['details'] }}</p>
						</div>
					  </div>
					  @section('classified')
					  <script src="/adminassets/goodsindexjs/goodsdetail.js"></script>
					  @endsection
 </div>
@endsection